<%-- 
    Document   : HalamanFilm
    Created on : Nov 15, 2012, 3:45:09 PM
    Author     : Satellite
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@ page import="java.sql.*" %>
<%@ page import="java.util.*" %>
<%@ page import="movie.Film" %>
<jsp:useBean id="paket" scope="application" class="movie.Film"/>
<script type="text/javascript" src="flowplayer-3.1.1.min.js"></script>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <title>Pay-for-Play</title>
        <link href='http://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'>
        <link href='http://fonts.googleapis.com/css?family=Abel|Satisfy' rel='stylesheet' type='text/css'>
        <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
        <script type="text/javascript" src="flowplayer-3.1.1.min.js"></script>
        <style>
            table, td, th
            {
                border:1px solid green;
            }
            th
            table{font-size:100%;background:white}
            a{
                color:black;
                text-decoration:none;
                font:bold;
                font-family:'Hobo Std';
                color: #5E5E5E;}

            a:hover{color:#606060
                        text-decoration:none;
                    color: red;}

            td.menu{background:lightblue}

            table.menu
            {
                font-size:100%;
                position:absolute;
                visibility:hidden;
            }

        </style>
        <script>
            function showmenu(elmnt)
            {
                document.getElementById(elmnt).style.visibility="visible";
            }
            function hidemenu(elmnt)
            {
                document.getElementById(elmnt).style.visibility="hidden";
            }
        </script>
    </head>
    <body>
        <div id="main">
            <center><img src="image/banner.jpg" width="100%" height="300"></center>

            <center><table width="100%">
                <tr bgcolor="#FF8080">
                    <td onmouseover="showmenu('home')" onmouseout="hidemenu('home')">
                        <a href="HalamanUtama.jsp">Home</a><br>
                        <table class="menu" id="home" width="120">
                            <tr><td class="menu"><a href="HalamanUtama.jsp">Logout</a></td></tr>
                            <tr><td class="menu"><a href="Register.jsp">Register</a></td></tr>
                        </table>
                    </td>
                    <td onmouseover="showmenu('film')" onmouseout="hidemenu('film')">
                        <a href="HalamanFilm.jsp">Film</a><br>
                        <table class="menu" id="film" width="120">
                            <tr><td class="menu"><a href="commingSoon.jsp">Coming Soon</a></td></tr>
                            <tr><td class="menu"><a href="newRelease.jsp">New Release</a></td></tr>
                            <tr><td class="menu"><a href="hot.jsp">Hot!</a></td></tr>
                            <tr><td class="menu">
                                    <form method="get" action="cariServlet" id="search">
                                        <input name="search" type="text" size="40" placeholder="Search movie..." />
                                    </form>
                                </td></tr>
                        </table>
                    </td>
                    <td onmouseover="showmenu('about')" onmouseout="hidemenu('about')">
                        <a href="aboutUs.asp">Ours</a><br>
                        <table class="menu" id="about" width="120">
                            <tr><td class="menu"><a href="profile.jsp">Profile</a></td></tr>
                            <tr><td class="menu"><a href="team.jsp">The Team</a></td></tr>
                            <tr><td class="menu"><a href="history.jsp">History</a></td></tr>
                        </table>
                    </td>
                </tr>
            </table><br><br>

            <%--    <center><a href="data/videoplayback.FLV" style="display:block;width:450px;height:350px;" id="player"></a>
            <script>
                flowplayer("player", "flowplayer-3.1.1.swf", {clip: { buferring: false, autoPlay: false, autoBuffering: false}});
            </script>
            </center> --%>
            <table border=1>
                <TR>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>JUDUL FILM</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>SINOPSIS</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>FILM</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>TRAILER</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>POSTER</B></FONT></TD>
                    <TD><FONT FACE="Verdana" SIZE="3"><B>HARGA</B></FONT></TD>

                </TR>
                <%
                            ArrayList pkt = paket.lihatDataPaket();
                            for (int idx = 0; idx < pkt.size(); idx++) {

                                Film product = (Film) pkt.get(idx);
                %>

                <tr>
                    <td><%=product.judul_film%></td>
                    <td><%=product.sinopsisFilm%></td>
                    <td>
                        <%-- <object type="application/x-shockwave-flash" data="player_flv_maxi.swf"
                              width="620" height="372">
                              <param name="movie" value="player_flv_maxi.swf">
                              <param name="allowFullScreen" value="true">
                              <param name="FlashVars" value="flv=<%=product.lokasiFilm%> &amp;width=620&amp;
                                       height=372&amp;showstop=1&amp;showvolume=1&amp;showtime=1&amp;
                                       startimage=images/video.jpg&amp;showfullscreen=1&amp;bgcolor1=A5A24A&amp;
                                       bgcolor2=A5A24A&amp;playercolor=A5A24A">
                         </object> --%>
                        <a
                            href="data/<%=product.lokasiFilm%>"
                            style="display:block;"
                            id="player">Open Here
                        </a>
                            <%--<a
                                href="filmservlet?data=<%= product.lokasiFilm%>" onclick="foo(this, event)" onkeypress="foo(this, event)"></a>--%>
                        <%--<script>
      flowplayer("player", "flowplayer-3.1.1.swf");
      </script>--%>

                    </td>

                    <td><%=product.trailer%></td>

                    <td><img  src ="data/<%=product.poster%>" width="100%" height="300"></td>
                    <td><%=product.harga%></td>

                </tr>

                <%
                            }
                %>
            </table></center>
            <center>
                <div id="footer">
                    <p> Copyright (c) 2012. All rights reserved.<br />Designed & Developed by Hardware Inc.</p>
                </div> </center>
        </div>
    </body>
</html>
